package org.practice.dao;

import java.util.List;
import java.util.Map;

import org.practice.model.Book;
import org.practice.util.DaoException;

public interface BookDao {
	public static final int ORDER_DEFAULT=1;
	public static final int ORDER_NAME_ASC = 2;
	public static final int ORDER_NAME_DESC = 3;
	
	public abstract int getTotalPagesByCategoryId(Integer categoryId, 
			int rowsPerPage)throws DaoException;
	
	public abstract Map<Integer,String> getOrderOptions();
	
	public abstract List<Book> findBookByCategoryId(Integer categoryId,
			int page,int rowsPerPage,Integer orderBy)throws DaoException;
}
